﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Calculate
    {
        protected int a;
        protected int b;

        public int A 
        {
            get { return this.a; }
            set { this.a = value; }
        }
        public int B
        {
            get { return this.b; }
            set { this.b = value; }
        }
        public virtual void DisplayResult(int a, int b)
        {
            int result;
            result = a + b;
            Console.WriteLine("和：{0}", result);
        }
    }
}
